package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.OaUploadZipMapper;
import com.ruoyi.system.domain.OaUploadZip;
import com.ruoyi.system.service.IOaUploadZipService;

/**
 * 上传简历压缩包Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-12-29
 */
@Service
public class OaUploadZipServiceImpl implements IOaUploadZipService 
{
    @Autowired
    private OaUploadZipMapper oaUploadZipMapper;

    /**
     * 查询上传简历压缩包
     * 
     * @param id 上传简历压缩包ID
     * @return 上传简历压缩包
     */
    @Override
    public OaUploadZip selectOaUploadZipById(Long id)
    {
        return oaUploadZipMapper.selectOaUploadZipById(id);
    }

    /**
     * 查询上传简历压缩包列表
     * 
     * @param oaUploadZip 上传简历压缩包
     * @return 上传简历压缩包
     */
    @Override
    public List<OaUploadZip> selectOaUploadZipList(OaUploadZip oaUploadZip)
    {
        return oaUploadZipMapper.selectOaUploadZipList(oaUploadZip);
    }

    /**
     * 新增上传简历压缩包
     * 
     * @param oaUploadZip 上传简历压缩包
     * @return 结果
     */
    @Override
    public int insertOaUploadZip(OaUploadZip oaUploadZip)
    {
        return oaUploadZipMapper.insertOaUploadZip(oaUploadZip);
    }

    /**
     * 修改上传简历压缩包
     * 
     * @param oaUploadZip 上传简历压缩包
     * @return 结果
     */
    @Override
    public int updateOaUploadZip(OaUploadZip oaUploadZip)
    {
        return oaUploadZipMapper.updateOaUploadZip(oaUploadZip);
    }

    /**
     * 批量删除上传简历压缩包
     * 
     * @param ids 需要删除的上传简历压缩包ID
     * @return 结果
     */
    @Override
    public int deleteOaUploadZipByIds(Long[] ids)
    {
        return oaUploadZipMapper.deleteOaUploadZipByIds(ids);
    }

    /**
     * 删除上传简历压缩包信息
     * 
     * @param id 上传简历压缩包ID
     * @return 结果
     */
    @Override
    public int deleteOaUploadZipById(Long id)
    {
        return oaUploadZipMapper.deleteOaUploadZipById(id);
    }
}
